package User.model;

import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.sql.Date;

/**
 * Created by Новак on 21.11.2014.
 */

public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private int id;
    private String login;
    private String pass;
    private int access_level;
    private String last_name;
    private String first_name;
    private Date birthday;
    private String email;
    private  int telephone_number;
    private String other_information;
    private String avatar;

    public User(){

    }
    public User(String login, String pass, String email){
        this.login=login;
        this.pass=pass;
        this.email=email;

    }


    public User(int id, String login, String pass, int access_level, String last_name, String first_name, Date birthday, String email, int telephone_number, String other_information) {
        this.id = id;
        this.login = login;
        this.pass = pass;
        this.access_level = access_level;
        this.last_name = last_name;
        this.first_name = first_name;
        this.birthday = birthday;
        this.email = email;
        this.telephone_number = telephone_number;
        this.other_information = other_information;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public int getAccess_level() {
        return access_level;
    }

    public void setAccess_level(int access_level) {
        this.access_level = access_level;
    }

    public String getLast_name() {
        return last_name;
    }

    public void setLast_name(String last_name) {
        this.last_name = last_name;
    }

    public String getFirst_name() {
        return first_name;
    }

    public void setFirst_name(String first_name) {
        this.first_name = first_name;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getTelephone_number() {
        return telephone_number;
    }

    public void setTelephone_number(int telephone_number) {
        this.telephone_number = telephone_number;
    }

    public String getOther_information() {
        return other_information;
    }

    public void setOther_information(String other_information) {
        this.other_information = other_information;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
